﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Gnosis.Babel;

namespace Gnosis.SQLite
{
    public abstract class Function
        : Value, IFunction
    {
        protected Function(string name)
            : this(name, new List<IExpression>())
        {
        }

        protected Function(string name, IExpression expression)
            : this(name, new List<IExpression> { expression })
        {
        }

        protected Function(string name, IList<IExpression> expressions)
            : base(string.Format("{0}(", name), ",", ")", expressions)
        {
        }
    }
}
